<?php
/* @var $this CustomerResidentController */
/* @var $model CustomerResident */

$this->breadcrumbs=array(
	'Customer SM Tenants '=>array('index'),
	$model->id,
);

if ((Yii::app()->user->type==="Admin")) {

$this->menu=array(
	array('label'=>'Manage', 'url'=>array('admin')),
	array('label'=>'List', 'url'=>array('index')),
	array('label'=>'Delete', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Update', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Create', 'url'=>array('create')),
	array('label'=>'Add Ticket', 'url'=>array('/ticket/create', 'id'=>$model->id)),
);
}else if((Yii::app()->user->type==="Manager")){
$this->menu=array(
	array('label'=>'Manage', 'url'=>array('admin')),
	array('label'=>'List', 'url'=>array('index')),
	array('label'=>'Update', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'Create', 'url'=>array('create')),
	array('label'=>'Add Ticket', 'url'=>array('/ticket/create', 'id'=>$model->id)),
);
}else {
$this->menu=array(
	array('label'=>'Manage', 'url'=>array('admin')),
	array('label'=>'List', 'url'=>array('index')),
	);
	}
?>
<h1 align = left><?php echo $model->FullNameResident?>
<h1>View Customer SM Tenant #<?php echo $model->id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'sm_storename',
		'sm_storetype',
		'sm_storemanager',
		'sm_mallbranch',
		'sm_telnum',
		'contact_main',
		'contact_address',
		'contact_maintel',
		'contact_email',
		'contact_name',
		'contact_telnum',
	),
)); ?>
